<template>
	<uni-nav-bar fixed="true" statusBar="true" border="false" left-icon="left" title="支付" @clickLeft="backFunc"></uni-nav-bar>
	<view class="payment-container">
		<view class="payment-header">
			<image class="success_icon mb20" src="@/static/pay_success.png" mode="widthFix"></image>
			<view class="mb30 font_size_32">支付成功</view>
		</view>
		<view>
			<view class="mb30">
				<text class="font_size_28">订单编号：</text>
				<text>{{ Data.orderNo }}</text>
			</view>
			<!-- <view class="mb30">
				<text>流水编号：</text>
				<text> {{ Data.thirdFlowNo }}</text>
			</view>-->
		</view>
		<view class="fixed-bottom-wrap">
			<view class="schdule-card uni-flex">
				<view class="flex-item wd100 sign bg-green tc color_white" @tap="backFunc()">
					<text>返回</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import api from '@/common/api/webapi.js'; /*api*/
	export default {
		data() {
			return {
				paymentIcon: '/static/pay_success.png',
				Data:{},
			}
		},
		onLoad(option) {
			if(option.param){
				let params = JSON.parse(decodeURIComponent(option.param));
				this.Data = params;
			}
		},
		methods: {
			backFunc() {
				uni.switchTab({
					url: '/pages/schdule/schdule',
					success() {
						var page = getCurrentPages().pop();
						if (page == undefined || page == null) return;
						page.onLoad();
					}
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.payment-container {
		padding: 60rpx 40rpx;
		background-color: #ffffff;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.payment-header {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 200rpx;
	}
	.success_icon{
		width: 200rpx;
		height: 200rpx;
	}
</style>